DomainObjects Class Library

Criteria.AddNotInSubquery Method (Field, Field, Criteria)

Constrains the search to rows in which the field has a value that is not equal any of the compareToField values returned by a subquery constrained by the given criteria.

public Criteria <CompareToClass>AddNotInSubquery(
   Field field,
   Field compareToField,
   Criteria criteria
); where CompareToClass: PersistableObject

Parameters

field
A field from the object model. It can be a field in a persistable object, a constant or a function.
compareToField
A field from the object model to select in a subquery and compare against. It can be a field in a persistable object, a constant or a function.
criteria
The criteria that will constrain the compareToField subquery.

Return Value

The current Criteria to which an AddInSubquery() constraint has been added.

See Also

Criteria Class | DomainObjects.Facade.Command Namespace | Criteria.AddNotInSubquery Overload List